<extend name="Base/commoncenter"/>

<block name="body">
    <form action="{:U('ordercreateaction')}" method="post">
        <input type='hidden' name='pid' value='{$pid}'>
        <input type='hidden' name='wid' value='{$wid}'>
        <div class="row">
            <div class="col-md-8"> <h3><span class="glyphicon glyphicon-home"></span> {$vo.name} 出库申请单建立 <span class="label label-default"> </span></h3></div>
            <div class="col-md-4 text-center"> <h3> </h3> </div>
        </div>
        <hr class="featurette-divider" style="border-color:#F3F3F3;border-bottom: #F3F3F3 3px solid; ">

        <div class="panel panel-default">
            <div class="panel-body">

                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th class="">仓库名称</th>
                            <th class="">包裹名称</th>
                            <th class="">申报价值</th>                
                            <th class="">包裹重量参考</th>             
                            <th class="">创建日期</th>
                            <th class="">状态</th>                  
                        </tr>
                    </thead>
                    <tbody>
                    <notempty name="_list">
                        <volist name="_list" id="vo">
                            <tr>

                                <td>[{$vo.wid|get_warehouse_country}] {$vo.wid|get_warehouse_name}</td>
                                <td>{$vo.id}#<strong>{$vo.name}  </strong><br/>{$vo.remark}</td>
                                <td>{$vo.price}</td>
                                <td>
                                    <gt name="vo.weight" value="0"><span class="label label-success" >秤重：{$vo.weight|get_kg}KG</span> </gt>
                                    
                                    <gt name="vo.bulkfactor" value="0"><span class="label label-default" style="margin-top: 5px;">体积重：{$vo.bulkfactor|get_kg}KG</span></gt>
                                </td>
                                <td><span>{$vo.createdate|time_format}</span></td>		 
                                <td>{$vo.status_text}<i class='glyphicon glyphicon-info-sign' style='color: #D5D5D5;padding-left: 3px;'></i>
                                    <div class="progress">
                                        <div class="progress-bar progress-bar-success progress-bar-striped active"  role="progressbar" aria-valuenow="{$vo.status}" aria-valuemin="0" aria-valuemax="7000" style="width: {$vo.status|get_baifengbi}%">
                                            <span class="sr-only">45% Complete</span>
                                        </div>
                                    </div>

                                </td>    

                            </tr>
                        </volist>
                        <else/>
                        <td colspan="10" class="text-center"> aOh! 暂时还没有内容! </td>
                    </notempty>
                    </tbody>
                </table>
            </div>
        </div>


        <div class="panel panel-default">
            <div class="panel-heading">收货地址选择</div>
            <div class="panel-body">
                <volist name="addresslist" id="vo">
                    <h4><input type="radio" name="aid" value="{$vo.id}"/> 目的地国家：<span class="badge">{$vo.countryid|get_country_name}</span>  详细收货地址：{$vo.name} {$vo.phone} {$vo.province}{$vo.city} {$vo.location} {$vo.zipcode}</h4> 
                </volist>
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-body">
                <table class="table table-hover">
                    <thead>
                        <tr>                      
                            <th class="">选择</th>
                            <th class="">线路名称</th>
                            <th class="">发出国家</th>
                            <th class="">目的国家</th>
                            <th class="">首重重量g</th>
                            <th class="">首重价格</th>
                            <th class="">续重重量g</th>
                            <th class="">续重单价</th>
                            <th class="">线路描述</th>           
                            <th class="">运费预估</th>      
                        </tr>
                    </thead>
                    <tbody>
                    <notempty name="_listExpline">
                        <volist name="_listExpline" id="vo">
                            <tr>

                                <td><input type="radio" name="eid" value="{$vo.id}"/> </td>
                                <td>{$vo.name}</td>
                                <td>{$vo.sendcountryid|get_country_name}</td>
                                <td>{$vo.acceptcountryid|get_country_name}</td>
                                <td><strong>{$vo.fweight}</strong></td>
                                <td><strong>{$vo.fprice}</strong></td>
                                <td><strong>{$vo.cweight}</strong></td>
                                <td><strong>{$vo.cprice}</strong></td>
                                <td>{$vo.remark}</td>
                                <td style="font-size: 20pt;color: red">≈{$vo.willpice}元</td>

                            </tr>
                        </volist>
                        <else/>
                        <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
                    </notempty>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">订单留言</div>
            <div class="panel-body">
                <div class="form-group">                 
                    <input type="text" class="form-control" name="remark" placeholder="留言">
                    <span class="help-block">如果您有话需要对我们说，请在这里写上留言，我们出库时将会看见。</span>
                </div>
            </div>
        </div>
        <div class="row" style="margin-bottom: 20px;">
            <div class="col-md-12 text-center"><input type="submit" value="提交申请" class="btn btn-success btn-large" style="width: 150px;height: 50px; font-size: 15pt;"></div>         
        </div>
    </form>
</block>